From 0c29c5da0e64daf49fc180a69151c73250cadc84 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 14 Sep 2002 15:28:39 +0000 Subject: [PATCH] Clean up type warnings. --- gpsbabel/gpspilot.c | 2 +- gpsbabel/magnav.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/gpspilot.c b/gpsbabel/gpspilot.c index 3278ad6bd..ed124d6f8 100644 --- a/gpsbabel/gpspilot.c +++ b/gpsbabel/gpspilot.c @@ -100,7 +100,7 @@ data_read(void) wpt_tmp->position.latitude.degrees = pdb_read4(&rec->latitude) / 3.6e6; wpt_tmp->position.altitude.altitude_meters = pdb_read2(&rec->elevation) / 100.0; - vdata = pdb_rec->data + sizeof(*rec); + vdata = (char *) pdb_rec->data + sizeof(*rec); /* * This maping is a bit contrived. diff --git a/gpsbabel/magnav.c b/gpsbabel/magnav.c index fc52e436b..dec7a1fcf 100644 --- a/gpsbabel/magnav.c +++ b/gpsbabel/magnav.c @@ -116,7 +116,7 @@ data_read(void) wpt_tmp->position.longitude.degrees = pdb_read4(&rec->longitude) / 1e5; wpt_tmp->position.latitude.degrees = pdb_read4(&rec->latitude) / 1e5; - vdata = pdb_rec->data + sizeof(*rec); + vdata = (char *) pdb_rec->data + sizeof(*rec); wpt_tmp->shortname = strdup(vdata); vdata += strlen (vdata) + 1; -- 2.30.2